<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/17
  Time: 17:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>楼层查询结果</title>
</head>
<style>
    #return{
        position: absolute;
        float: left;
        top: 60%;
        left: 45%;
    }
</style>
<body>
<div id="query">
    <form action=http://localhost:8080/hostel_war_exploded/floorQuery?" method="post">
        <div>
            <span>楼层号</span>
            <input type="text" name="floorid" placeholder="请填写想要查询的楼层">
        </div>
        <div>
            <input type="submit" value="查询">
        </div>
    </form>
</div>
<div id="table">
    <table align="center" border="1px solid #ccc" width="1000px">
        <tr>
            <th>楼层</th>
            <th>房间号</th>
            <th>房间价格</th>
            <th>房间类型</th>
            <th>房间状态</th>
        </tr>

            <c:forEach items="${house}" var="house">
        <tr>
                <td>${house.floot_id}</td>
                <td>${house.name}</td>
                <td>${house.price}</td>
                <td>${house.type}</td>
                <td>${house.state}</td>
        </tr>
            </c:forEach>

    </table>
</div>
<div id="return">
    <a href="list2.jsp">重新查询</a>
</div>
</body>
</html>
